home *** CD-ROM | disk | FTP | other *** search
- Path: news.interpath.net!softbase
- From: softbase@mercury.interpath.com (Scott McMahan - Softbase Systems)
- Newsgroups: comp.lang.c
- Subject: Re: dos.h equivalent in gcc or cc ?
- Date: 18 Apr 1996 19:43:19 GMT
- Organization: Interpath -- Providing Internet access to North Carolina
- Distribution: inet
- Message-ID: <4l660n$a0@news.interpath.net>
- References: <3173B701.41C6@ieec.fcr.es> <4l5jcr$de1@news.interpath.net> <danpop.829847079@news.cern.ch>
- NNTP-Posting-Host: mercury.interpath.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Dan Pop (danpop@mail.cern.ch) wrote:
- : >int _argc;
- : >char **_argv;
- : >
- : >int main(int argc, char **argv) {
- : >
- : > _argv = argv; _argc = argc;
- : >}
-
- : You forgot a small detail:
-
- : ANSI classic 4.1.2: All external identifiers that begin with an underscore
- : are reserved.
-
- That's true, and that's why Borland put the _ in front of them in
- the first place, to keep them out of the user namespace. (They
- probably should begin with __!)
-
- It's not an ideal solution, but it's a dirty hack to make the program
- work. If it interferes with symbols defined by the implementation
- to which this code is being ported, then it's time to get rid of
- the non-standard junk and go with the standard command line
- argument convention.
-
- Scott
-
-